import request from '@/utils/request'

// 查询账款计划列表
export function listAmount(query) {
  return request({
    url: '/contract/amount/list',
    method: 'get',
    params: query
  })
}

// 查询账款计划详细
export function getAmount(id) {
  return request({
    url: '/contract/amount/' + id,
    method: 'get'
  })
}

// 新增账款计划
export function addAmount(data) {
  return request({
    url: '/contract/amount',
    method: 'post',
    data: data
  })
}

// 修改账款计划
export function updateAmount(data) {
  return request({
    url: '/contract/amount',
    method: 'put',
    data: data
  })
}

// 删除账款计划
export function delAmount(id) {
  return request({
    url: '/contract/amount/' + id,
    method: 'delete'
  })
}
